import requests
r = requests.get('https://api.github.com/events')
print(r.json)
print(r.raise_for_status())